package com.mall.sun.repository.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mall.sun.model.dto.AgentDTO;
import com.mall.sun.model.dto.GoodAgentDTO;
import com.mall.sun.model.po.Agent;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Tansty
 * @since 2021-11-30
 */
public interface AgentMapper extends BaseMapper<Agent> {
    int updateAgent(GoodAgentDTO goodAgentDTO);
    Long countAgent();
    Agent[] getAllAgent(Page<AgentDTO>page);
    AgentDTO[] searchAgent(String aName);
    int updateAgentPo(Agent agent);
    int deleteAgent(AgentDTO agentDTO);
    int insertAgentPo(Agent agent);
}
